@extends('admin/index')
@section('name')
    <h1><span class="label label-default"> 用户编辑  </span></h1>
    <hr>
    @foreach($result as $list)
    <div class="container">
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <form class="form-horizontal" action="{{url('/main/upd')}}" method="post" enctype="multipart/form-data">
                    {{  csrf_field() }}
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">电话</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="u_tel" placeholder="电话" value="{{$list->u_tel}}">
                            <input type="hidden" name="id" value="{{$list->id}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
                        <div class="col-sm-10">
                            <input type="password" class="form-control" name="u_pwd" placeholder="密码" value="{{$list->u_pwd}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">昵称</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="u_name" placeholder="昵称" value="{{$list->u_name}}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">头像</label>
                        <div class="col-sm-10">
                            <input type="file"  name="u_img" placeholder="昵称" value="{{$list->u_img}}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">会员</label>
                        <div class="col-sm-10">
                            <label class="radio-inline">
                                <input type="radio" name="u_member" value="0" @if($list->u_member == 0)checked @endif> no
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="u_member" value="1" @if($list->u_member == 1)checked @endif> yes
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputPassword3" class="col-sm-2 control-label">大V</label>
                        <div class="col-sm-10">
                            <label class="radio-inline">
                                <input type="radio" name="u_v" value="0" @if($list->u_v == 0)checked @endif> no
                            </label>
                            <label class="radio-inline">
                                <input type="radio" name="u_v" value="1" @if($list->u_v == 1)checked @endif> yes
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">SAVE</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    @endforeach
@endsection

